'use strict'

const titbit = require('titbit')

const app = new titbit({
    debug:true,
    https:true,
    key:'/usr/local/cert/www.pzjh123.cn.key',
    cert:'/usr/local/cert/www.pzjh123.cn.crt'
})

let info = {name:'季雨葭',sno:'2018011862'};

app.get('/',async c=>{
    c.res.body = `${process.env.USER} success`
})

app.get('/info',async c=>{
  c.res.body = `${JSON.stringify(info)}`;
})

app.run(8934)
